﻿#region Using Declarations

using Infrastructure.Domain;

#endregion

namespace Infrastructure.Persistence
{
    public interface IRepository : IReadOnlyRepository
    {
        void Update<TEntity>(TEntity entity) where TEntity : IEntity;
        void Insert<TEntity>(TEntity entity) where TEntity : IEntity;
        void Delete<TEntity>(TEntity entity) where TEntity : class, IEntity;
        void SaveChanges();
        void Dispose(); 
    }
}
